import Vue from 'vue'
import App from './App.vue'
import VueRouter from "vue-router"

import ElementUI from "element-ui"
import 'element-ui/lib/theme-chalk/index.css';

import Login from "./components/login/Login"
import Register from "./components/register/Register"
import Index from "./components/index/Index"
import OrderList from "./components/order/OrderList"




Vue.config.productionTip = false
Vue.use(VueRouter)
Vue.use(ElementUI)


var router = new VueRouter({
	routes:[
		{path:'/',redirect:'/login'},
		{path:'/login',component:Login},
		{path:'/register',component:Register},
		{path:'/index',component:Index},
		{path:'/orderList',component:OrderList}
	]
})

new Vue({
  render: h => h(App),
  router
}).$mount('#app')
